package com.frame.server.user.feign;

import com.frame.common.tools.pojo.OrderVO;
import com.frame.common.tools.result.ServiceResult;
import com.frame.server.user.feign.fallback.OrderServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @auther zhangwj
 * @date 2021/3/10 下午4:25
 */
@FeignClient(name = "server-order", fallbackFactory = OrderServiceFallbackFactory.class)
public interface OrderService {

    @GetMapping(value = "order/get")
    ServiceResult<OrderVO> getOrder();
}
